RectRgn
RectRgn
Set region to simple rectangle RgnHandle theRgn ; region to re define; must already exist Rect *theRect ; rectangle with desired shape and position RectRgn performs the common operation of defining a rectangular region. The new region shape is specified by an existing Rect structure. theRgn is the handle of a region. It must already have been created via
theRect is the address of an 8-byte Rect structure. It describes the shape and position desired for theRgn .
Notes: This function discards the current structure of a region and sets it to
define a rectangular area. RectRgn is functionally equivalent to: Note that you must call NewRgn to allocate the handle's master pointer and coordinates of the sides of a rectangle as its parameters.